home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts18-03
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: for (int i(1); ...)
- Date: Fri, 23 Feb 96 11:34:43 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4gk8ee$9qp@sam.inforamp.net>
- References: <4gg2j6$93g@darkstar.UCSC.EDU>
- NNTP-Posting-Host: ts18-03.tor.inforamp.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <4gg2j6$93g@darkstar.UCSC.EDU>,
- ray@cse.ucsc.edu (Ray Swartz) wrote:
- >Should
- >for (int i(1);...)
- >even be used?
- >
- >Ray
-
- Nothing wrong with i(1), but it is conventional to use i=0. If your code went
- to somebody who has no idea what i(1) meant, then we have a problem. You just
- wasted one hour of his time finding out. I would stick to i=0 unless you
- really needed to do otherwise.
-
- Agrivar
-